<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>添加任务</title>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/departmentManage.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/verifyPhone.js"></script>

</head>
<body>
<div class="container">
    <jsp:include page="_Minister.jsp" />
</div>

<div class="right_col" role="main" style="height:656px">
    <div class="row">
        <div class="col-md-8">
            <ul class="list-inline">
                <li>任务管理</li>
                <li>/</li>
                <li>添加任务</li>
            </ul>

            <form role="form" class="form-horizontal" action="${pageContext.request.contextPath}/minister/MinisterAdd?publishman=${sessionScope.member.memberNo}&department=${sessionScope.member.department}" method="post" enctype="multipart/form-data">


                <div class="form-group">
                    <label class="col-sm-2 control-label">任务名称:</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="missionName" name="missionName" required maxlength="10">
                    </div>
                </div>

                <div class="form-group">
                    <label  class="col-sm-2 control-label">任务内容:</label>
                    <div class="col-sm-10">
                        <textarea rows="5" cols="60" id="context" name="context"  required></textarea>
                    </div>
                </div>
                <div class="form-group">
                    <label  class="col-sm-2 control-label">任务文件:</label>
                    <div class="col-sm-10">
                        <input class="form-control" id="file" name="file"  type="file" required/>
                    </div>
                </div>

                <div class="form-group">
                    <label  class="col-sm-2 control-label">任务授予:</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="memberNo" name="memberNo" required>
                        <tbody>
                        <c:forEach items="${department}" var="depart">

                            <td><c:out value="${depart.memberNo}"/>(<c:out value="${depart.studentName}"/>)</td>
                            <br>

                        </c:forEach>
                        </tbody>
                    </div>
                </div>




                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <div class="col-sm-3"></div>
                        <button type="submit" class="btn btn-primary col-sm-2">提交</button>
                        <div class="col-sm-2"></div>
                        <button type="reset" class="btn btn-danger col-sm-2">重置</button>
                        <div class="col-sm-3"></div>
                    </div>
                </div>

            </form>
        </div>
    </div>

</div>
</body>
</html>